﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using EbbinghausWord.BLL;
using Microsoft.Phone.Controls;

namespace EbbinghausWord.Pages
{
    public partial class ScorePage : PhoneApplicationPage
    {
        public ScorePage()
        {
            InitializeComponent();

            InitScore();
        }


        /// <summary>
        /// 初始化成绩
        /// </summary>
        private void InitScore()
        {

            socreTextBlock.Text = ScoreManager.GetCurrentScore();

            ScoreManager.InitScore();
            scoreListBox.ItemsSource = ScoreManager.Scores.OrderByDescending(x => x.Date);
        }
    }
}